package cn.edu.zafu.bigdata.yh;
class MyDate{
    private int day;
    private int month;
    private int year;

    public String getDate(){
        return day+"/"+month+"/"+year;
    }
    public int setDate(int a,int b,int c)
    {
        if ((a > 0 && a <= 31) && (b > 0 && b <= 12))
        {
            if(b==2&&(a>28)){
                return -1;
            }
            else {
                day = a;
                month = b;
                year = c;
                return 0;
            }
        }
        else
        {
            return -1;
        }
    }
}
